<?php

namespace App\Http\Controllers;

use App\Library\Requests\Category\ShopCategoryActivityTypeRequest;
use App\Library\Service\ShopCategoryService;
use Illuminate\Http\JsonResponse;

class ShopCategoryController extends BaseController
{
    public function __construct(ShopCategoryService $service)
    {
        $this->service = $service;
    }

    /**
     * 获取活动商品分类信息
     * @param ShopCategoryActivityTypeRequest $request
     * @return JsonResponse
     *
     */
    public function activityCategory(ShopCategoryActivityTypeRequest $request): JsonResponse
    {
        return $this->service->activityCategory($request);
    }
}
